<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'job_add.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="css/emp_add.css">

</head>

<body>
	<h3>添加职务</h3>
	<div id="container">
		<form id="fm-form" method="post" action="jobAction!addJob.action">
			<fieldset>
				<div class="fm-opt">
					<label for="fm-addr">岗位名称</label> <input id="fm-addr"
						name="job.job_name" type="text">
					<div class="fm-req">
						<label for="fm-firstname">部门</label> <select name="job.job_dept">
							<sql:query var="result"
								sql="select dept_id,dept_name from t_department" />
							<!--第一个下拉菜单-->
							<option value="0">请选择</option>
							<c:forEach var="row" items="${result.rows}">
								<option value="${row.dept_name}">${row.dept_name}</option>
							</c:forEach>
						</select>
					</div>

				</div>
			</fieldset>

			<div id="fm-submit" class="fm-req">
				<input name="Submit" value="&#25552; &#20132;" type="submit">
			</div>
			<br>
		</form>
	</div>
</body>
</html>
